package com.example.controller;


import com.example.service.GoodsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (Goods)表控制层
 *
 * @author makejava
 * @since 2023-01-31 13:59:10
 */
@RestController
@RequestMapping("goods")
public class GoodsController  {
    /**
     * 服务对象
     */
    @Resource
    private GoodsService goodsService;

    /**
     * 新增数据
     */
    @GetMapping("add")
    public int insert() {
        return goodsService.add();
    }


}

